package com.hrpmar.service;

import com.hrpmar.controller.vo.Node;
import com.hrpmar.pojo.Menu;

import java.util.List;
import java.util.Map;

/**
 * Created by c on 2017-11-14.
 */
public interface PermissionService {
    /**
     * 获取用户登陆的可操作的菜单
     * @param
     * @return
     */
    public Map<Menu,List<Menu>> searchMenus(Integer roleId);
    /*
    * 一级菜单
    * */
    public List<Node> searchNodes4Tree(Integer roleId);


    public void grant(Integer roleId,Integer[] menuIds);
}
